<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
  <style>
    section {
      position: relative;
      width: 450px;
      height: 300px;
      border: 1px solid #000;
      margin: 200px auto;
      background: url(./images/chu.jpg) no-repeat;
      background-size: 100%;
      perspective: 1000px;
    }

    .door_l,
    .door_r {
      position: absolute;
      top: 0;
      width: 50%;
      height: 100%;
      background-color: red;
      transition: all 1s;
      background: url(images/bg.png) 0 8px;;
    }

    .door_l {
      left: 0;
      transform-origin: left;
      border-right: 1px solid #000;
    }

    section:hover .door_l {
      transform: rotateY(-130deg);
    }

    .door_r {
      right: 0;
      transform-origin: right;
      border-left: 1px solid #000;
    }

    section:hover .door_r {

      transform: rotateY(130deg);
    }

    .door_l::before,
    .door_r::before {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      content: "";
      width: 20px;
      height: 20px;
      border-radius: 50%;
      border: 1px solid #fff;
      right: 5px;
    }

    .door_r::before {
      left: 5px;
    }
  </style>
</head>

<body>
  <section>
    <div class="door_l"></div>
    <div class="door_r"></div>
  </section>
</body>

</html>